<?php echo $this->Section->main();?>
<?php echo $this->Html->script(array(HOST.'/jquery.cycle.lite'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array(HOST.'/gallery.seo'),null,array('inline'=>false));?>

			<div class="content">
				<div class="container container_4">
						<div class='grid_4'>
							<div class="grid_1 alpha">
                  </br>
                  </br>
                  
									<div class="menu_top"><h2><?php echo __('Kategorie',true)?></h2></div>
									<div class= "menu_center">
										<?php echo $this->element('menu-right-gallery',array('plugin' => false,'categories'=>$this->Gallery->categories()))?>&nbsp;
									</div>
									<div class="menu_bottom"></div>
										<div class="clear"> </div>
								
					
							</div>
							<div class="grid_3 omega">
								
							    	<?php
							    		//pobranie indeksu kategorii 
							    		$category = (isset($this->params['named']['g'])) ? $this->params['named']['g'] : null;    		
							    		$aCategory = $this->Gallery->category($category);
							    	?>
									<?php 
									
									echo $this->element('gallery',array('plugin' => false,
									'items'=>$this->Gallery->index($aCategory['GalleryCategory']['id'])
									,'category_id'=>$aCategory['GalleryCategory']['id']
									,'params'=>array('width'=>125,'height'=>100,'padding'=>0,'margin'=>15,'border'=>0,'i'=>null)
									));?>
									<div class="clear"> </div>
								
								<div class="clear"> </div>
							</div>
							<div class="clear"> </div>
						</div>
					<div class='clear'>&nbsp;</div>
				</div>
			<div class='clear'>&nbsp;</div>
		</div>
